package com.wanxi.service;

import com.wanxi.dao.ContactDao;
import com.wanxi.dao.NavDao;
import com.wanxi.model.ContactModel;
import com.wanxi.model.NavModel;

import java.util.List;

public class ContactService {
//    获取头部所有标签
    public List<NavModel> getNavModelList() {
        NavDao navDao=new NavDao();
        return navDao.getAllNav();
    }
//    获取联系方式
    public List<ContactModel> getContactModelList() {
        ContactDao contactDao=new ContactDao();
        return contactDao.getContact();
    }
}
